import { useRoutes, createBrowserRouter } from "react-router-dom";
import App from "App";
import Login from "pages/Login";
import ProjectLibrary from "pages/ProjectLibrary";
import Favorites from "pages/Favorites";
const router = createBrowserRouter([
  {
    path: "/",
    element: <App />,
    children: [
      {
        path: "projects",
        element: <ProjectLibrary />,
      },
      {
        path: "favorite",
        element: <Favorites />,
      },
    ],
  },
  {
    path: "/login",
    element: <Login />,
  },
]);

export default router;
